import { http } from '@/utils/http'
// 获取站点地址
export const getadd = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/merchant_order/querySiteSupplyAddressList?storeId=${data}`
  })
}

// 获取当天订单详情
export const getorder = (data: any) => {
  return http({
    method: 'GET',
    url: `/jx/merchant_order/getStoreOrderDetail?siteId=${data.siteId}&keyword=${data.keyword}&storeId=${data.storeId}&id=${data.id}`
  })
}

// 获取菜品订单统计
export const getfoodmenu = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/merchant_order/getOrderStatistics?storeId=${data}`
  })
}
// 导出菜品订单详情
export const menuexecl = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/merchant_order/exportOrder?siteId=${data.siteId}&keyword=${data.keyword}&storeId=${data.storeId}`
  })
}
// 历史订单菜品统计
export const gethistory = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/merchant_order/gethIstoryOrderStatistics?storeId=${data.storeId}&endTime=${data.endTime}&beginTime=${data.beginTime}&siteId=${data.siteId}&keyword=${data.keyword}`
  })
}

// 历史订单菜品详情
export const gethistorymsg = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/merchant_order/getIstoryStoreOrderDetail?storeId=${data.storeId}&endTime=${data.endTime}&beginTime=${data.beginTime}&siteId=${data.siteId}&keyword=${data.keyword}&id=${data.id}`
  })
}
// 获取售后订单数据
export const getback = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/merchant_order/getafterSalesList?storeId=${data}`
  })
}